<?php
global $currentUser;
global $account_current;

$name = $currentUser['nickname'] == ""?$currentUser['id']:$currentUser['nickname'];
?>
<h3><?=$name?></h3>
<ul id="control">
	<li>
		<ul>
			<li<?php if($account_current == "account_settings") echo ' class="current"'?>><a href="<?=REQUEST_BASE?>account/profile/" class="plain">Account settings</a></li>
			<li<?php if($account_current == "change_password") echo ' class="current"'?>><a href="<?=REQUEST_BASE?>account/password/" class="plain">Change password</a></li>
			<li><a href="<?=REQUEST_BASE?>logout/" class="plain">Log out</a></li>
		</ul>
	</li>
</ul>